{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        <div class="row">
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>数据统计</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                            <tr>
                                <td class="no-borders">
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td class="no-borders">
                                    今日注册
                                    <b>
                                        {$data.reg_day}
                                    </b>
                                </td>
                                <td class="no-borders">
                                    本月注册
                                    <b>
                                        {$data.reg_month}
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    今日充值
                                    <b>
                                        {$data.topup_day}
                                    </b>
                                </td>
                                <td>
                                    本月充值
                                    <b>
                                        {$data.topup_month}
                                    </b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    今日分成
                                    <b>
                                        {:number_format($data.shouyi_day / 10,2)}
                                    </b>
                                </td>
                                <td>
                                    本月分成
                                    <b>
                                        {:number_format($data.shouyi_month / 10,2)}
                                    </b>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>新增会员</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                            <tr>
                                <td class="no-borders">
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td class="no-borders">
                                    今日会员
                                    <b>
                                        {:db('user')->where(['id' => ['in', $ids]])->whereTime('register_datetime','today')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    本周会员
                                    <b>
                                        {:db('user')->where(['id' => ['in', $ids]])->whereTime('register_datetime','week')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    本月会员
                                    <b>
                                        {:db('user')->where(['id' => ['in', $ids]])->whereTime('register_datetime','month')->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <i class="fa fa-circle text-navy"></i>
                                </td>
                                <td>
                                    总共会员
                                    <b>
                                        {:db('user')->where(['id' => ['in', $ids]])->count()}
                                    </b>
                                    个
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}